package com.dingwen.payment.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * rest controller
 *
 * @author dingwen
 * 2021.07.14 15:33
 */
@RestController
@RequestMapping("/payment")
public class PaymentController {

    @Value("${server.port}")
    private Integer port;

    /**
     * consul 服务中心测试
     *
     * @return {@link String}
     */
    @GetMapping("/consul")
    public String find() {
        return port + "\t" + UUID.randomUUID();
    }

}
